<?php
/**
 * @package WordPress
 * @subpackage Starkers
 */

get_header(); ?>

<?php get_template_part('flashing-page'); ?>

	<?php wp_reset_query(); ?>

<div id="innerContainer">

<div id="mainContent"> 
	
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post top" id="post-<?php the_ID(); ?>">
			
			<?php the_content('<p>Read the rest of this page &raquo;</p>'); ?>
			<?php wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
		</div>
		<?php endwhile; endif; ?>
	<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div><!-- mainContent -->
</div><!-- innerContainer -->	

<?php get_sidebar(); ?>

<div class="clear"></div>
<script type="text/javascript">
		$(".selectInfo span.wpcf7-list-item-label:empty").parent().css({'display':'none'});
		$("span.Programs span.wpcf7-list-item input").click(function() {
			$(".select span.wpcf7-checkbox input").removeAttr('checked');
		});
		$(".selectInfo span.wpcf7-list-item").addClass('hidden');
		$(".selectInfo span.wpcf7-list-item:nth-child(3n+1)").removeClass('hidden');
		$("span.Programs span.wpcf7-list-item:nth-child(1) input").click(function() {
			$(".selectInfo span.wpcf7-list-item").addClass('hidden');
			$(".selectInfo span.wpcf7-list-item:nth-child(3n+1)").removeClass('hidden');
		}).attr('checked', 'checked');
		$("span.Programs span.wpcf7-list-item:nth-child(2) input").click(function() {
			$(".selectInfo span.wpcf7-list-item").addClass('hidden');
			$(".selectInfo span.wpcf7-list-item:nth-child(3n+2)").removeClass('hidden');
		});
		$("span.Programs span.wpcf7-list-item:nth-child(3) input").click(function() {
			$(".selectInfo span.wpcf7-list-item").addClass('hidden');
			$(".selectInfo span.wpcf7-list-item:nth-child(3n+3)").removeClass('hidden');
		});
		
		$("span.Demos span.wpcf7-list-item input").click(function() {
			$(this).parent().siblings().find("input").removeAttr('checked');
			 if($(this).attr('checked') = ''){
                    $(this).removeAttr('checked');
                } else {
			
			$(this).attr('checked', 'checked');
			}
		});
</script>
<?php get_footer(); ?>
